from django.conf.urls.defaults import *

from satchmo_store.urls import urlpatterns as satchmo_paterns

from product.views import category_index

tuning_patterns = patterns('',
    (r'^$', 'product.views.category_index'),
 url(r'^shop/quickorder/ajax/$', 'satchmo_tuning.views.cart_add_multiple_ajax',
                               name='satchmo_tuning_quick_order_ajax'),
 url(r'^shop/checkout/$', 'satchmo_tuning.views.checkout',
                               name='satchmo_tuning_checkout'),
 url(r'^shop/checkout/success/$', 'satchmo_tuning.views.checkout_success',
                               name='satchmo_tuning_checkout_success'),
)

urlpatterns = tuning_patterns + satchmo_paterns

import settings
if settings.LOCAL_DEV:
    urlpatterns += patterns('',
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root' : settings.STATIC_FILES_ROOT}),                            
    )
